/*    */ package com.zimbra.cs.zimlet;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class ZimletException
/*    */   extends Exception
/*    */ {
/*    */   private ZimletException(String msg)
/*    */   {
/* 28 */     super(msg);
/*    */   }
/*    */   
/*    */   private ZimletException(String msg, Throwable cause) {
/* 32 */     super(msg, cause);
/*    */   }
/*    */   
/*    */   public static ZimletException ZIMLET_HANDLER_ERROR(String msg) {
/* 36 */     return new ZimletException(msg);
/*    */   }
/*    */   
/*    */   public static ZimletException INVALID_ZIMLET_DESCRIPTION(String msg) {
/* 40 */     return new ZimletException(msg);
/*    */   }
/*    */   
/*    */   public static ZimletException INVALID_ZIMLET_CONFIG(String msg) {
/* 44 */     return new ZimletException(msg);
/*    */   }
/*    */   
/*    */   public static ZimletException INVALID_ZIMLET_NAME() {
/* 48 */     return new ZimletException("Zimlet name may contain only letters, numbers and the following symbols: '.', '-' and '_'");
/*    */   }
/*    */   
/*    */   public static ZimletException INVALID_ZIMLET_NAME(String msg)
/*    */   {
/* 53 */     return new ZimletException(msg);
/*    */   }
/*    */   
/*    */   public static ZimletException INVALID_ZIMLET_ENTRY(String entry) {
/* 57 */     return new ZimletException(String.format("Invalid entry in Zimlet archive: %s", new Object[] { entry }));
/*    */   }
/*    */   
/*    */   public static ZimletException INVALID_ABSOLUTE_PATH(String entry) {
/* 61 */     return new ZimletException(String.format("Invalid entry in Zimlet archive: %s. Zimlet entries with absolute paths are not allowed.", new Object[] { entry }));
/*    */   }
/*    */   
/*    */   public static ZimletException CANNOT_DEPLOY(String zimlet, Throwable cause)
/*    */   {
/* 66 */     return new ZimletException("Cannot deploy Zimlet " + zimlet, cause);
/*    */   }
/*    */   
/*    */   public static ZimletException CANNOT_DEPLOY(String zimlet, String msg, Throwable cause) {
/* 70 */     return new ZimletException(String.format("Cannot deploy Zimlet %s. Error message: %s", new Object[] { zimlet, msg }), cause);
/*    */   }
/*    */   
/*    */   public static ZimletException CANNOT_CREATE(String zimlet, Throwable cause) {
/* 74 */     return new ZimletException("Cannot create Zimlet " + zimlet, cause);
/*    */   }
/*    */   
/*    */   public static ZimletException CANNOT_DELETE(String zimlet, Throwable cause) {
/* 78 */     return new ZimletException("Cannot delete Zimlet " + zimlet, cause);
/*    */   }
/*    */   
/*    */   public static ZimletException CANNOT_ACTIVATE(String zimlet, Throwable cause) {
/* 82 */     return new ZimletException("Cannot activate Zimlet " + zimlet, cause);
/*    */   }
/*    */   
/*    */   public static ZimletException CANNOT_DEACTIVATE(String zimlet, Throwable cause) {
/* 86 */     return new ZimletException("Cannot deactivate Zimlet " + zimlet, cause);
/*    */   }
/*    */   
/*    */   public static ZimletException CANNOT_ENABLE(String zimlet, Throwable cause) {
/* 90 */     return new ZimletException("Cannot enable Zimlet " + zimlet, cause);
/*    */   }
/*    */   
/*    */   public static ZimletException CANNOT_DISABLE(String zimlet, Throwable cause) {
/* 94 */     return new ZimletException("Cannot disable Zimlet " + zimlet, cause);
/*    */   }
/*    */   
/*    */   public static ZimletException CANNOT_FLUSH_CACHE(Throwable cause) {
/* 98 */     return new ZimletException("Cannot flush zimlet cache", cause);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/zimlet/ZimletException.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */